//
//  MusicInfo.m
//  NvSellerShow
//
//  Created by dx on 17/2/10.
//  Copyright © 2017年 Meicam. All rights reserved.
//

#import "MusicInfo.h"
#import <MediaPlayer/MediaPlayer.h>
@implementation MusicInfo
+ (instancetype)musicWithItem:(id)item
{
    return [[MusicInfo alloc] initWithItem:item];
}

- (instancetype)initWithItem:(id)item
{
    if (self = [super init]) {
        
        self.musicTitle = [item valueForProperty: MPMediaItemPropertyTitle];
        self.musicArtist = [item valueForProperty: MPMediaItemPropertyArtist];
        self.musicUrl = [item valueForProperty: MPMediaItemPropertyAssetURL];
        
    }
    return self;
}

@end
